package kosta.model;

import java.sql.SQLException;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
@Repository
public class StudentOfMemberDaoImpl implements MemberDao {	
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;

	@Override
	public void registerMember(MemberVO mvo) throws SQLException {
		sqlSessionTemplate.insert("member.registerStudent",mvo);
	}

	@Override
	public MemberVO showMember(MemberVO mvo) throws SQLException {
		return sqlSessionTemplate.selectOne("member.showMember", mvo);
	}
}
